const user = {
  namespaced: true,
  state: {
    username: "",
    userboss: false,
  },
  mutations: {
    setUsername(state, username) {
      state.username = username;
    },
    setUserBoss(state, boss) {
      state.userboss = boss;
    },
    clear(state) {
      state.username = "";
      state.userboss = false;
    },
  },
};

export default user;
